package com.distribute.framework.core.web.servlet;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

public class Lazy3qResponseWrapper extends HttpServletResponseWrapper
 {

	private Lazy3qPrintWriter lazy3qPrintWriter = null;
	private OutputStreamWriter osWriter = null;

	public PrintWriter getWriter() throws IOException {
		if (this.lazy3qPrintWriter == null)
		      this.lazy3qPrintWriter = new Lazy3qPrintWriter(super.getWriter(),osWriter);
		return this.lazy3qPrintWriter;
	}

	public Lazy3qResponseWrapper(HttpServletResponse response, OutputStreamWriter osWriter) throws IOException {
		super(response);
		this.osWriter = osWriter;
	}
}